package com.kc.web.controller.business;

import com.kc.business.domain.BizVideo;
import com.kc.business.domain.KcBusinessGoodsView;
import com.kc.business.service.KcBusinessGoodsViewService;
import com.kc.common.core.controller.BaseController;
import com.kc.common.core.page.TableDataInfo;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName KcBusinessGoodsViewController
 * @Description TODO
 * @Author wangdongliang
 * @Date 2021/5/10 14:25
 */
@RestController
@RequestMapping("/business/businessGoodsView")
public class KcBusinessGoodsViewController extends BaseController {
    @Resource
    private KcBusinessGoodsViewService kcBusinessGoodsViewService;

    @PreAuthorize("@ss.hasPermi('business:businessGoodsView:list')")
    @GetMapping("/getList")
    public TableDataInfo getList(KcBusinessGoodsView kcBusinessGoodsView){
        startPage();
        return getDataTable(kcBusinessGoodsViewService.getList(kcBusinessGoodsView));
    }
}
